<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%@ include file="/WEB-INF/jsp/header.jsp" %>


<title>Остановки</title>
<a href="main">
	<div class="mybutton">
		На главную
	</div>
</a>
<br><br><br>
<form method="POST" action="stops">
	<input name="name" type="text" placeholder="Название"
		data-validation="required, length" data-validation-length="max20"/>
	<br>
	<input class="button" type="submit" value="Добавить"/>
</form>
<table>
<c:forEach items="${names}" var="stop">
	<tr>
		<td>${stop.name}</td>
	</tr>
</c:forEach>
</table>
<%@ include file="/WEB-INF/jsp/footer.jsp" %>